<?php

namespace App\Models\Guanyuan;

use App\Models\BaseModel;
use App\Models\Traits\KfSoftDeletes;
use App\Models\Traits\KfUid;
use Illuminate\Database\Eloquent\Relations\HasMany;

class GuanyuanAccountModel extends BaseModel
{
    use KfUid;
    use KfSoftDeletes;

    protected $table = "guanyuan_account";

    protected $fillable = [
        'id',
        'guanyuanId',
        'name',
        'desc',
        'isDeleted',
        'createdAt',
        'createdByUid',
        'updatedAt',
        'updatedByUid',
    ];

    public function bindRel(): HasMany
    {
        return $this->hasMany(GuanyuanAccountBindModel::class, 'guanyuanAccountId', 'id');
    }
}
